projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbc8b2
)
dm: firmware: Automatically bind child devices
author
Andreas Dannenberg
<
[email protected]
>
Mon, 27 Aug 2018 10:27:38 +0000
(15:57 +0530)
committer
Tom Rini
<
[email protected]
>
Tue, 11 Sep 2018 12:32:55 +0000
(08:32 -0400)
To support scenarios where a firmware device node has subnodes that
have their own drivers automatically scan the DT and bind those when
the firmware device gets bound.
Reviewed-by: Tom Rini <
[email protected]
>
Signed-off-by: Andreas Dannenberg <
[email protected]
>
Signed-off-by: Lokesh Vutla <
[email protected]
>
drivers/firmware/firmware-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/firmware-uclass.c
b/drivers/firmware/firmware-uclass.c
index d09923595b845a950636d17e0bec9b6dd1d82554..3d33b6deba33dc516ac371b625ddfd3902dafada 100644
(file)
--- a/
drivers/firmware/firmware-uclass.c
+++ b/
drivers/firmware/firmware-uclass.c
@@
-7,4
+7,7
@@
UCLASS_DRIVER(firmware) = {
.id = UCLASS_FIRMWARE,
.name = "firmware",
+#if CONFIG_IS_ENABLED(OF_CONTROL)
+ .post_bind = dm_scan_fdt_dev,
+#endif
};